package com.bpm.example.event.delegate;

import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.BpmnError;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;

//财务审计服务
@Slf4j
public class ErrorBoundaryTask2Delegate implements JavaDelegate {
    @Override
    public void execute(DelegateExecution execution) {
        log.info("自动任务2发生异常");
        throw new BpmnError("error3");

    }
}
